const express = require('express');
// 创建路由对象
const router = express.Router();
// 优化 导入验证规则模块
const expressJoi = require('@escook/express-joi');
const userSchema = require('../schema/user_check');

// 导入路由函数
const user_fn = require('../router_handler/user_fn');
// 用户注册路由
router.post('/reguser', expressJoi(userSchema), user_fn.regUser);
// 用户登录
router.post('/login', expressJoi(userSchema), user_fn.loginUser);



// 暴漏模块
module.exports = router;